@import "fontsize-and-color.scss";

.dload-app {
  position: absolute;
  top: calc(100% + 2px);
  left: calc((100% - 142px) / 2);
  background-color: transparent;
  z-index: 15;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 0;
  //底边之所以是16px的内边距是因为子元素相对定位不改变标准流占用的位置只改变视觉效果
  //设置内边距，和外层父盒子的目的是为了能够显示阴影，并且能够实现高度的过渡效果
  width: 142px;
  transition: .5s;


  .content {
    position: relative;
    top: 8px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 126px;
    height: fit-content;
    background-color: #fff;
    box-shadow: 0 1px 5px #aaa;
    cursor: pointer;


    img {
      display: block;
      width: 90px;
      height: 90px;
      object-fit: cover;
      margin-top: 18px;
    }

    p {
      margin: 12px 0;
      @include font-normal;
      color: #333;
    }

    &::before {
      content: '';
      height: 8px;
      width: 16px;
      position: absolute;
      left: calc((126px - 16px) / 2);
      top: -8px;
      clip-path: polygon(50% 0, 100% 100%, 0 100%);
      background-color: #fff;
      z-index: 16;

    }
  }



}